package com.aspose.cells;

import java.util.Iterator;

class zauj extends CollectionBase {
   void a(byte[] var1) {
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var1);
   }

   public byte[] a(int var1) {
      return (byte[])((byte[])this.a.get(var1));
   }

   void a(zauk var1) {
      Object var2 = null;
      byte[] var4 = new byte[]{3, 0, 1, 0, 0, 0, 0, 0};
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.r), 0, var4, 2, 4);
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var4);
      var4 = new byte[24];
      var4[0] = 3;
      var4[1] = 2;
      var4[8] = var4[9] = var4[10] = var4[11] = -1;
      var4[12] = 2;
      DateTime var3 = var1.s;
      System.arraycopy(com.aspose.cells.b.a.zc.a(CellsHelper.getDoubleFromDateTime(var3, false)), 0, var4, 14, 8);
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var4);
      var4 = new byte[]{3, -1, 0, 0, 0, 0, 0, 0};
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var4);
   }

   void a(PivotTable var1) {
      Object var2 = null;
      String var3 = var1.getName();
      int var4 = 10 + zakq.e(var3);
      byte[] var5 = new byte[var4];
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)var3.length()), 0, var5, 2, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)var3.length()), 0, var5, 8, 2);
      zco.a(var5, 10, var3);
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var5);
      var5 = new byte[]{0, 2, 1, 65, 0, 0, 0, 0};
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var5);
      var5 = new byte[]{0, -1, 0, 0, 0, 0, 0, 0};
      com.aspose.cells.b.a.a.ze.a(this.a, (Object)var5);
   }

   long a() {
      Iterator var1 = this.a.iterator();

      byte[] var2;
      do {
         if (!var1.hasNext()) {
            return 16641L;
         }

         var2 = (byte[])var1.next();
      } while(var2[0] != 0 || var2[1] != 2);

      return com.aspose.cells.b.a.zc.d(var2, 2);
   }

   void a(long var1) {
      int var3 = -1;
      Object var4 = null;

      byte[] var6;
      for(int var5 = 0; var5 < this.a.size(); ++var5) {
         var6 = (byte[])((byte[])this.a.get(var5));
         if (var6[0] == 0 && var6[1] == 2) {
            if (var6[1] == 2) {
               System.arraycopy(com.aspose.cells.b.a.zc.a(var1), 0, var6, 2, 4);
               return;
            }

            if ((var6[1] & 255) == 255) {
               var3 = var5;
            }
         }
      }

      var6 = new byte[]{0, 2, 1, 65, 0, 0, 0, 0};
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1), 0, var6, 2, 4);
      if (var3 != -1) {
         this.a.add(var3, var6);
      } else {
         com.aspose.cells.b.a.a.ze.a(this.a, (Object)var6);
         var6 = new byte[]{0, -1, 0, 0, 0, 0, 0, 0};
         com.aspose.cells.b.a.a.ze.a(this.a, (Object)var6);
      }

   }

   boolean b() {
      return (this.a() & 4294967295L & 256L) != 0L;
   }

   void a(boolean var1) {
      if (var1) {
         this.a(this.a() | 256L);
      } else {
         this.a(this.a() & 4294967039L);
      }

   }

   void a(zauj var1) {
      for(int var2 = 0; var2 < var1.getCount(); ++var2) {
         byte[] var3 = var1.a(var2);
         byte[] var4 = new byte[var3.length];
         System.arraycopy(var3, 0, var4, 0, var3.length);
         this.a(var4);
      }

   }

   // $FF: synthetic method
   public Object get(int x0) {
      return this.a(x0);
   }
}
